<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <html>

    <head>
        <meta charset="utf-8">
        <title></title>
        <style type="text/css">
            * {
                padding: 0px;
                margin: 0px;
            }

            html,
            body {
                width: 100%;
                height: 100%;
            }

            #box {
                width: 100%;
                height: 100%;
                background-color: #000000;
                opacity: 0.5;
                position: relative;
            }

            #box img {
                width: 100%;
                height: 100%;
            }

            #box-cvn {
                width: 500px;
                height: 300px;
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                background-color: white;
                
            }

            h1 {
                margin-top: 120px;
                margin-left: 180px;
            }

            button {
                width: 100px;
                height: 40px;
                text-align: center;
                line-height: 40px;
                font-size: 20px;
                border: 0px solid rgb(247, 246, 245);
            }

            .yes {
                background-color: rgb(123, 255, 0);
                color: white;
                position: absolute;
            right: 30%;
            bottom: 10px;
            }

            .no {
                background-color: rgb(12, 205, 253);
                color: white;
            position: absolute;
            left: 30%;
            bottom: 10px;
            }
        </style>
    </head>

    <body>
        <div id="box">
            <img src="../src/images/banner1.jpg" alt="">
            <div id="box-cvn">
                <ul>
                <h1>一共
                    <span class="zhifu"></span>元.</h1>
                <button type="button" class="yes">确定</button>
                <button type="button" class="no">取消</button>
            </ul>
            </div>
        </div>
    </body>

    </html>
    <script src="../src/js/jquery.min.js"></script>
    <script>
        //获取本地结算的钱
        let nuewmoney = localStorage.getItem("oneb");
        $(".zhifu").html(nuewmoney);
        $(".yes").click(function () {
            alert("支付成功")
            location.href = "http://127.0.0.1/west-point/src/buycar.html";
        })
        $(".no").click(function () {
            alert("支付失败,请检查网络状况,稍后再试吧")
        })
    </script>